<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/5/16
  Time: 10:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="p2.jsp"%>
<%--2页面拿进来一起组成新页面在运行--%>
<html>
<head>
    <title>Title</title>
</head>
<body>
我是p1
<%--真实路径 D:\idea-project\t163jspall\web\demo3\p1.jsp--%>
<%--相对路径  web\demo3\p1.jsp--%>
<%
    //pageContext.include("p2.jsp"); 把2页面完全运行玩之后再把结果家进入来
    //object count =Integer.parseInt("swerf") application.getAttribute("count");
    Integer count =(Integer)application.getAttribute("count");
    //int 1 Integer 1 NULL
    if(count!=null){
        count=count+1;
    }else{
        count=1;
    }
    application.setAttribute("count",count);//设入属性
%>
<%="您是第"+(Integer)application.getAttribute("count")%>

</body>
</html>
